package com.yujianweb;

//数组的遍历
public class Test03 {
    public static void main(String[] args) {
        String[] citise = {"北京", "上海", "广州", "深圳"};

        for(int i=0; i < citise.length; i++){
            System.out.println(citise[i]);
        }

        //foreach只用于简单的读取
        for(String t:citise){
            System.out.println(t);
        }
    }
}
